package com.hoangkien.network.task;

import java.util.Set;
import com.hoangkien.config.ICore;
import com.hoangkien.network.IProtocol;
import com.hoangkien.network.IRunable;
import com.hoangkien.util.Listener;

public abstract class AbstractTask implements IRunable{
	protected Set<Listener> listener= null;
	protected String Authkey;
	protected IProtocol protocol;
	protected ICore core;
	public AbstractTask(Listener listener, ICore core) {
		super();
		this.listener = core.copyAndReconstructListeners(listener);
		this.core = core;
		this.Authkey = core.getAuthKey();
		this.protocol = core.getProtocol();
	}

}
